<template>
  <div>
    <el-form>
      <el-form-item label="考试标题："> 练习 </el-form-item>
      <el-form-item label="出题人：">题库 </el-form-item>
      <el-form-item label="考试时间："> 不限制</el-form-item>
      <el-form-item label="考试说明：">
        点击【开始练习】即可开始练习
      </el-form-item>
      <el-form-item label="题目数量：">
        <el-input-number v-model="count" :min="1" :max="20" label="题目数量"></el-input-number>
      </el-form-item>
      <el-form-item>
        <el-button @click='startExec'>开始练习</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      count: 10
    };
  },
  methods: {
      startExec() {
          this.$router.push({name: 'exec', query: {count: this.count}})
      }
  },
};
</script>

<style></style>
